<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算结果</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcdn.net/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
    <style>
        .step-indicator {
            display: flex;
            justify-content: space-between;
            margin: 2rem 0;
        }
        .step {
            flex: 1;
            text-align: center;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 0.5rem;
        }
        .step.active {
            background: #0d6efd;
            color: white;
        }
        .download-area {
            border: 2px solid #0d6efd;
            padding: 3rem;
            text-align: center;
            border-radius: 1rem;
            background: #f8f9fa;
        }
    </style>
</head>
<body>
    <div class="container py-5">
        <h1 class="mb-4 text-center">处理结果</h1>
        
        <!-- 步骤指示器 -->
        <div class="step-indicator">
            <div class="step">1. 上传文件</div>
            <div class="step">2. 设置参数</div>
            <div class="step active">3. 下载结果</div>
        </div>

        <!-- 错误提示 -->
        {% if error %}
        <div class="alert alert-danger">{{ error }}</div>
        {% endif %}

        <div class="download-area">
            <i class="bi bi-file-earmark-zip fs-1 text-success"></i>
            <h4 class="my-3">文件处理完成！</h4>
            <p class="text-muted mb-4">点击下方按钮下载计算结果文件</p>
            <a href="/download/{{ download_file }}" class="btn btn-success btn-lg">
                <i class="bi bi-download"></i> 下载结果文件
            </a>
            <div class="mt-4">
                <a href="/" class="btn btn-secondary btn-lg">
                    <i class="bi bi-arrow-counterclockwise"></i> 重新开始
                </a>
            </div>
        </div>
    </div>
</body>
</html>
